import java.util.Scanner;

public class OutputTheEachBitOfInt {
    public static void main(String[] args) {
        Scanner scanner=new Scanner (System.in);
        int num = scanner.nextInt();
        int countwei=0;
        int temp=num;
        while(num!=0){
            num/=10;
            countwei++;
        }
        num=temp;
        for(int i =0;i<countwei;i++){
            System.out.print(num%10+",");
            num/=10;
        }
    }
}
